home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 April / macformat-023.iso / Shareware City / Developers / RLaB / toolbox / angle.r next >
Encoding:
Text File  |  1994-02-21  |  139 b   |  10 lines  |  [TEXT/RLAB]

  1. //
  2. // Caclulate phase angle of a complex value.
  3. // angle = atan2(imag,real)
  4. //
  5.  
  6. angle = function(a)
  7. {
  8.   return atan2(imag(a), real(a));
  9. };
  10.